/**   
 * 项目名：phms3
 * 日期：    2019-12-01 17:02:29  
 * Copyright (c) 2015- HTSC-版权所有     
 */

package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpStoreArea;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

/**
 * BpStoreAreaDao
 * 
 */
public interface BpStoreAreaDao extends JpaRepository<BpStoreArea, Long>, QuerydslPredicateExecutor<BpStoreArea> {
    public Page<BpStoreArea> findAll(Specification<BpStoreArea> spec, Pageable pageable);

    public BpStoreArea save(BpStoreArea bean);

    public void delete(BpStoreArea bean);

    public BpStoreArea findByCode(String code);

}
